package poo.sortable;

public class Intero extends Sortable {

	private int x;

	public Intero(int x) {
		this.x = x;
	}

	public int get() {
		return x;
	}

	public void set(int x) {
		this.x = x;
	}

	protected int compareTo(Sortable y) {
		Intero i = (Intero) y;
		if (this.x < i.x)
			return -1;
		if (this.x == i.x)
			return 0;
		return 1;
	}// compareTo

	public String toString() {
		return "" + x;
	}// toString

}// Intero
